
import Step from '../../../Step'
const defaultAttrs = {
    include_subfolders:"",
    destination_is_a_file:"",
    copy_empty_folders:"",
    create_destination_folder:"",
    overwrite_files:"",
    remove_source_files:"",
    arg_from_previous:"",
    add_result_filesname:""
}
class mysqlreader  extends Step {
  constructor(step) {
    super(step)
    if (!step || !step.attrs) {
      this.attrs =defaultAttrs;
    }
  }
  getData(transformation) {

  }
  supplementData(data){
     if (data.column.length === 0) {
           data.column.push("*");
     }
     if("querySql"==data.queryModel){
       delete data.connection[0].table
       delete data.column
       delete data.where
     }else{
       delete data.connection[0].querySql;
     }
     console.log(data)
  }
}
export default mysqlreader